package com.zito.health.service;

import com.zito.health.common.service.BaseService;
import com.zito.health.entity.User;
import com.zito.health.vo.UserVo;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface UserService {

    public User save(User object);

    public void delete(Integer id);

    public void update(User object);

    public List<User> query();

    public List<User> query(User object);

    public User queryOne(User object);

    public User queryById(Integer id);

    public User queryUserById(Integer id);

    public boolean exists(Integer id);

    List<UserVo> queryList(UserVo param);

    List<User> validateUsername4Update(User u);

    List<UserVo> list4Admin(UserVo param);

    HashMap<String ,Object> exchangeToken(String username, String password);
}
